<!--
 * @Description:
 * @Author BPF
 * @create 2021/8/25 21:46
 -->
<template>
  <div @click="sayHello">这是子属性</div>
</template>

<script>
export default {
  emits: ['sayHello'],
  setup(props, { attrs, emit }) {
    console.log(props, attrs)

    const sayHello = () => {
      emit('sayHello', '1', { 1: 2 })
    }
    return {
      sayHello
    }
  }
}
</script>

<style scoped></style>
